<ul>
[#list addressList as address]
    [#assign isDefault = address_index == 0]
    <li [#if address_index == 0]class="on"[/#if] data-addressId="${address.id!}" [#if address_index > 3 && !all]style="display: none;"[/#if] >
        <em></em>
        <div class="adtitle">
            [#if address.setdefault == 1]<span>默认地址</span>[#else]<a href="javascript:void(0)" onclick="setDefaultAddress('${address.id!}')">设为默认地址</a>[/#if]
            <label>${address.name!}</label>
        </div>
        <p class="name">${address.provinceName!} ${address.cityName!} ${address.areaName!} ${address.addr!}</p>
        <div class="num">
                        <span>
                            <a href="javascript:void(0)" onclick="showAddress('${address.id!}')">编辑</a>
                            <a href="javascript:void(0)" onclick="showRemoveAddressWin('${address.id!}')">删除</a>
                        </span>
            <label>[#if address.tel?? && address.tel != '']${address.tel!}[#else]${address.phone!}[/#if]</label>
        </div>
    </li>
[/#list]
    <li class="add" [#if addressList?? && addressList?size > 4 && !all]style="display: none;"[/#if]>
        <a href="javascript:void(0)" onclick="showAddress()"><span></span>新增收货地址</a>
    </li>
</ul>
<div class="clear"></div>
[#if addressList?? && addressList?size > 4 && !all]
<a href="javascript:void(0)" style="color: #00b1db; text-decoration: none;" onclick="$('.editAddress li').show(); $(this).hide();">更多地址</a>
[/#if]